package cate.game.client.msg;

import lombok.ToString;

@ToString
public class MsgConfig {

    /** 消息号 a */
    public final int a;

    /** 消息号 b */
    public final int b;

    /** 编解码方式 */
    public final byte codec;

    /** 消息标题 */
    public final String title;

    /** 消息详情 */
    public final String detail;

    public MsgConfig(int a, int b) {
        this(a, b, GameMsg.CODEC_JSON, "a="+a+",b="+b+"未标题", "");
    }

    public MsgConfig(int a, int b, byte codec) {
        this(a, b, codec, "a="+a+",b="+b+"未标题", "");
    }

    public MsgConfig(int a, int b, String title) {
        this(a, b, GameMsg.CODEC_JSON, title, "");
    }

    public MsgConfig(int a, int b, String title, String detail) {
        this(a, b, GameMsg.CODEC_JSON, title, detail);
    }

    public MsgConfig(int a, int b, byte codec, String title) {
        this(a, b, codec, title, "");
    }

    public MsgConfig(int a, int b, byte codec, String title, String detail) {
        this.a = a;
        this.b = b;
        this.codec = codec;
        this.title = title;
        this.detail = detail;
    }
}
